<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { useThemeStore } from '@/stores/modules/theme'

const themeStore = useThemeStore()

const size = computed(() => themeStore.themeConfig.componentSize)

themeStore.loadTheme()
</script>

<template>
  <el-config-provider :locale="zhCn" :size="size">
    <router-view />
  </el-config-provider>
</template>
